package com.ruoyi.carowner.service.impl;

import java.util.List;

import com.ruoyi.carowner.domain.CarownerWalletBankcard;
import com.ruoyi.carowner.mapper.CarownerWalletBankcardMapper;
import com.ruoyi.carowner.service.ICarownerWalletBankcardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.carowner.mapper.CarownerWalletBankcategoryMapper;
import com.ruoyi.carowner.domain.CarownerWalletBankcategory;
import com.ruoyi.carowner.service.ICarownerWalletBankcategoryService;

/**
 * 银行卡分类Service业务层处理
 *
 * @author ruoyi
 * @date 2024-08-14
 */
@Service
public class CarownerWalletBankcategoryServiceImpl implements ICarownerWalletBankcategoryService {
    @Autowired
    private CarownerWalletBankcategoryMapper carownerWalletBankcategoryMapper;
    /**
     * 查询银行卡分类
     *
     * @param id 银行卡分类主键
     * @return 银行卡分类
     */
    @Override
    public CarownerWalletBankcategory selectCarownerWalletBankcategoryById(Integer id) {
        return carownerWalletBankcategoryMapper.selectCarownerWalletBankcategoryById(id);
    }

    /**
     * 查询银行卡分类列表
     *
     * @param carownerWalletBankcategory 银行卡分类
     * @return 银行卡分类
     */
    @Override
    public List<CarownerWalletBankcategory> selectCarownerWalletBankcategoryList(CarownerWalletBankcategory carownerWalletBankcategory) {
        System.out.println("xxxxxxxxxxxxxxxxxxxxxx");
        return carownerWalletBankcategoryMapper.selectCarownerWalletBankcategoryList(carownerWalletBankcategory);
    }

    /**
     * 新增银行卡分类
     *
     * @param carownerWalletBankcategory 银行卡分类
     * @return 结果
     */
    @Override
    public int insertCarownerWalletBankcategory(CarownerWalletBankcategory carownerWalletBankcategory) {
        return carownerWalletBankcategoryMapper.insertCarownerWalletBankcategory(carownerWalletBankcategory);
    }

    /**
     * 修改银行卡分类
     *
     * @param carownerWalletBankcategory 银行卡分类
     * @return 结果
     */
    @Override
    public int updateCarownerWalletBankcategory(CarownerWalletBankcategory carownerWalletBankcategory) {
        return carownerWalletBankcategoryMapper.updateCarownerWalletBankcategory(carownerWalletBankcategory);
    }

    /**
     * 批量删除银行卡分类
     *
     * @param ids 需要删除的银行卡分类主键
     * @return 结果
     */
    @Override
    public int deleteCarownerWalletBankcategoryByIds(Integer[] ids) {
        return carownerWalletBankcategoryMapper.deleteCarownerWalletBankcategoryByIds(ids);
    }

    /**
     * 删除银行卡分类信息
     *
     * @param id 银行卡分类主键
     * @return 结果
     */
    @Override
    public int deleteCarownerWalletBankcategoryById(Integer id) {

        return carownerWalletBankcategoryMapper.deleteCarownerWalletBankcategoryById(id);
    }
}
